/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 30318
 * Date: 2023-05-17
 * Time: 10:51
 */
public class TestDate {
    public int year = 2000;

    public int month = 7;

    public int day = 4;

    public TestDate(){

    }

    public TestDate(int year, int month, int day) {
        this.year = year;
        this.month = month;
        this.day = day;
    }

    public void setDate(TestDate this, int y, int m, int d){
        this.year = y;
        this.month = m;
        this.day = d;
    }

    public void printDate(){
        System.out.println(this.year+"-"+this.month+"-"+this.day);
    }

    public static void main(String[] args) {
        TestDate testDate1 = new TestDate();
        TestDate testDate2 = new TestDate();
        TestDate testDate3 = new TestDate();

        testDate1.setDate(2023,5,17);
        testDate2.setDate(2024,5,17);
        testDate3.setDate(2025,5,17);

        testDate1.printDate();
        testDate2.printDate();
        testDate3.printDate();
    }

    public static void main1(String[] args) {
        TestDate testDate = new TestDate();
        testDate.setDate(2023,5,17);
        /*testDate.year = 2023;
        testDate.month = 5;
        testDate.day = 17;*/
        testDate.printDate();
        //System.out.println("===");
    }
}
